package by.kniazhych.core.server.local.logic.peaces {
	
	import by.kniazhych.core.data.game.PeacePosition;
	import by.kniazhych.core.server.local.logic.LogicController;
	
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	public class VaukalakPeace extends AbstractPeace{
		
		
		public function VaukalakPeace(controller:LogicController, type:uint) {
			super(controller, type);
		}
		
		override public function checkMotion(sP:PeacePosition, fP:PeacePosition):Boolean {
			if (Math.abs(sP.y - fP.y) == 2 && Math.abs(sP.x - fP.x) == 1 && !super._isMyCell(fP)) return true;
			if (Math.abs(sP.y - fP.y) == 1 && Math.abs(sP.x - fP.x) == 2 && !super._isMyCell(fP)) return true;
			return false;
		}
		
		
	}

}